package com.example.MyThread.exercises02;

/**
 * @author Jason
 * @PACKAGE_NAME com.example.MyThread.exercises01
 * @Description
 * @date 2023-12-11 9:14
 */
public class BuyTicketsDemo {
    public static void main(String[] args) {
        BuyTickets bt1 = new BuyTickets("人一");
        BuyTickets bt2 = new BuyTickets("人二");

        bt1.start();
        bt2.start();
        //向Java虚拟机返回可用处理器的数目
        int count = Runtime.getRuntime().availableProcessors();
        System.out.println(count);

    }
}
